package com.guo.core.framework.chain;

import com.guo.core.framework.chain.checker.Checker;
import com.guo.core.framework.template.TestReq;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert;

@Slf4j
@Service
public class BChecker implements Checker<TestReq> {

    @Override
    public void check(TestReq req) {
        log.info("BChecker 执行");
        Assert.isTrue(req.getName().equals("李四"), "李四模拟异常");
    }

}
